import request from "@/utils/request";

// 查询胶粘剂信息列表
export function listAdhesive(query) {
  return request({
    url: "/system/adhesive/list",
    method: "get",
    params: query,
  });
}

// 查询胶粘剂信息详细
export function getAdhesive(id) {
  return request({
    url: "/system/adhesive/" + id,
    method: "get",
  });
}

// 新增胶粘剂信息
export function addAdhesive(data) {
  return request({
    url: "/system/adhesive",
    method: "post",
    data: data,
  });
}

// 修改胶粘剂信息
export function updateAdhesive(data) {
  return request({
    url: "/system/adhesive",
    method: "put",
    data: data,
  });
}

// 删除胶粘剂信息
export function delAdhesive(id) {
  return request({
    url: "/system/adhesive/" + id,
    method: "delete",
  });
}

// 胶黏剂型号三级目录
export function getModel(query) {
  return request({
    url: "/system/adhesive/getModel",
    method: "get",
    params: query,
  });
}
